// 工期风险与影响事件
import request from '@/utils/request'
import { faceApiUrl } from '../config'
let apiUrl = faceApiUrl// + '-penghong'
/**
 * 条件查询树形标签(事件类型 {type: 10} 子类型 {parentId: id})
 * @param data
 */
export function queryTreeLabelList(data) {
    return request({
        url: apiUrl + '/treeLabel/queryTreeLabelList',
        method: 'post',
        data: data
    })
}

/**
 * 分页查询
 * @param data
 */
export function getPageProjectRiskEvent(data) {
    return request({
        url: apiUrl + '/projectRiskEvent/getPageProjectRiskEvent',
        method: 'post',
        data: data
    })
}
/**
 * 添加工期风险与影响事件
 * @param data
 */
export function insertSelective(data) {
    return request({
        url: apiUrl + '/projectRiskEvent/insertSelective',
        method: 'post',
        data: data
    })
}

/**
 * 修改工期风险与影响事件
 * @param data
 */
export function updateByPrimaryKeySelective(data) {
    return request({
        url: apiUrl + '/projectRiskEvent/updateByPrimaryKeySelective',
        method: 'post',
        data: data
    })
}

/**
 * 获取工期风险与影响事件信息
 * @param data
 */
export function getProjectRiskEventById(params) {
   return request({
      url: apiUrl + '/projectRiskEvent/getProjectRiskEventById',
      method: 'get',
      params: params
   })
}